package com.intrabelenes.controllers;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
 * 
 * @author rioslore
 *
 */
@Controller
public class LoginController {

private final Logger logger = LoggerFactory.getLogger(HomeController.class);
	
	@RequestMapping(value = "login", method = RequestMethod.GET)
	public String goLogin(Model model) {
		return "login";
	}
	
	@RequestMapping(value = "logout", method = RequestMethod.GET)
	public String doLogout(){	
		logger.info("Enter to logout page.");		
		return "logout";
	}
}
